/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BackingBeans;

import Banks.*;
import ModelBeans.BanksModelBean;
import java.io.Serializable;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author xiph
 */
@ManagedBean
@RequestScoped
public class BanksBackingBean implements Serializable
{
	@ManagedProperty(value="#{banksModelBean}")
	private BanksModelBean bmb;

	public String getNewName() {
		return newName;
	}

	public void setNewName(String newName) {
		this.newName = newName;
	}

	private String newName;

	public BanksModelBean getBmb() {
		return bmb;
	}

	public void setBmb(BanksModelBean bmb) {
		this.bmb = bmb;
	}
	
	public BanksBackingBean()
	{
	}
	
	public List<Bank> getBanks()
	{
		return bmb.getBank();
	}
}
